<?php

namespace app\tiktok\controller;
use app\common\controller\PCBase;
use app\common\controller\DBase;
use app\tiktok\logic\OrderLogic;
use Throwable;
use  think\App;
class Order extends PCBase
{

    /**
     * 查看列表
     * @throws Throwable
     */
    public function getExpertList()
    {

        $params   = $this->request->post();
        return  (new OrderLogic())->getExpertList($params);
    }


    /**
     * @desc    获取店铺
     * @date    2025-07-24
     * @author  luckyXiong
     */
    public function getShop()
    {

        $params   = $this->request->post();
        return  (new OrderLogic())->getShop($params);
    }



    /**
     * 新增达人
     * @throws Throwable
     */
    public function addExpert()
    {

        $params              = $this->request->post();
        $params['admin_id']  = $this->getAdminId();
        return  (new OrderLogic())->addExpert($params);
    }


    /**
     * 新增达人
     * @throws Throwable
     */
    public function checkExpert()
    {
        $params = $this->request->post();
        return  (new OrderLogic())->checkExpert($params);
    }




    /**
     * 编辑达人
     * @throws Throwable
     */
    public function editExpert()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->editExpert($params);
    }



    /**
     * @desc   删除达人
     * @throws Throwable
     */
    public function delExpert()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->delExpert($params);
    }



    /**
     * @desc    获取达人列表接口
     * @date    2025-07-26
     * @author  luckyXiong
     */
    public function getExpert()
    {
        $params                = $this->request->post();
        $keyword               = $params['keyword']??'';
        $params['expert_name'] = $keyword;
        return  (new OrderLogic())->getExpert($params);
    }


    /**
     * @desc    达人合作基础列表
     * @date    2025-07-26
     * @author  luckyXiong
     */
    public function getExpertCooperate()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->getExpertCooperate($params);
    }


    /**
     * @desc    新增达人合作接口
     * @date    2025-07-26
     * @author  luckyXiong
     */
    public function addExpertCooperate()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->addExpertCooperate($params);
    }


    /**
     * @desc    编辑达人
     * @date    2025-07-26
     * @author  luckyXiong
     */
    public function editExpertCooperate()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->editExpertCooperate($params);
    }

    /**
     * @desc    删除达人合作
     * @date    2025-07-26
     * @author  luckyXiong
     */
    public function delExpertCooperate()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->delExpertCooperate($params);
    }



    /**
     * @desc    达人合作样品订单
     * @date    2025-07-27
     * @author  luckyXiong
     */
    public function cooperateOrder()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->cooperateOrder($params);
    }


    /**
     * @desc    达人合作样品订单新增
     * @date    2025-07-27
     * @author  luckyXiong
     */
    public function  addCooperateOrder()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->addCooperateOrder($params);
    }


    /**
     * @desc    达人合作样品订单编辑
     * @date    2025-07-27
     * @author  luckyXiong
     */
    public function  editCooperateOrder()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->editCooperateOrder($params);
    }


    /**
     * @desc    达人合作样品订单删除
     * @date    2025-07-27
     * @author  luckyXiong
     */
    public function  delCooperateOrder()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->delCooperateOrder($params);
    }


    /**
     * @desc    达人素材广告列表
     * @date    2025-07-27
     * @author  luckyXiong
     */
    public function  videoAdvList()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->videoAdvList($params);
    }


    /**
     * @desc    自动刷新达人ID
     * @date    2025-07-27
     * @author  luckyXiong
     */
    public function  get_new_expert()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->get_new_expert($params);
    }


    /**
     * @desc    合作记录弹框
     * @date    2025-08-07
     * @author  luckyXiong
     */
    public function  get_cooperate_info()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->get_cooperate_info($params);
    }


    /**
     * @desc    获取标签列表
     * @date    2025-08-06
     * @author  luckyXiong
     */
    public function  get_tags_info()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->get_tags_info($params);
    }


    /**
     * @desc    达人标签操作
     * @date    2025-08-06
     * @author  luckyXiong
     */
    public function  operate_tags()
    {
        $params   = $this->request->post();
        return  (new OrderLogic())->operate_tags($params);
    }






}